#include "semantic.h"

int main()
{

	computePredictAll();

	
	LL1_Parse ll1;
	ll1.parseScanner("bsort.txt");


	ParseTree* ptree;
	ptree = ll1.OutParseTree();


	ptree->OutToFile("bsortll1.txt");
	//ptree1->OutToFile("tmpre.txt");

	ll1.outError();
	ll1.outErrorFile("bsortll1err.txt",3);

	Semantic se;
	se.setParseTree(ptree);
	se.SemScanner();
	se.OutToCmd();
	se.outErrorCmd();

	se.outErrorFile(fopen("bsorterr.txt", "w+")); 

	return 0;
}